﻿@model ApplicationCore.Entities.Room
@{
	ViewData["Title"] = "添加房间";
	Layout = "~/Views/Shared/_Layout_Create.cshtml";
}
<form class="layui-form">
	<div class="layui-tab">
		<ul class="layui-tab-title">
			<li class="layui-this">基本信息</li>
			<li>控制</li>
			<li>直播配置</li>
			<li>公告相关</li>
			<li>其他</li>

		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">

				<div class="layui-form-item">
					<label class="layui-form-label">房间号</label>
					<div class="layui-input-block">
						<input type="text" id="RoomNo" name="RoomNo" value="@Model.RoomNo" lay-verify="required"  autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">房间</label>
					<div class="layui-input-block">@*lay-verify="required|phone|number"*@
						<input type="text" id="Name" name="Name" value="@Model.Name" lay-verify="required" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">密码</label>
					<div class="layui-input-block">
						<input type="text" id="PassWord" name="PassWord" value="@Model.PassWord" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-block">
						<input type="text" id="Remarks" name="Remarks" value="@Model.Remarks" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">客服qq</label>
					<div class="layui-input-block">
						<input type="text" id="ServiceQQ" name="ServiceQQ" value="@Model.ServiceQQ" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-tab-item">
				<div class="layui-form-item">
					<label class="layui-form-label">消息自动审核</label>
					<div class="layui-input-block">
						@Html.DropDownListFor(s => s.AMA, new SelectList(Enum.GetNames(typeof(ApplicationCore.Entities.AutomaticMessageAudit)), "请选择"))


					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">游客时间</label>
					<div class="layui-input-block">
						<input type="text" id="GuestTimeOut" name="GuestTimeOut" value="@Model.GuestTimeOut" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">发言频率</label>
					<div class="layui-input-block">
						<input type="text" id="SpeakInterval" name="SpeakInterval" value="@Model.SpeakInterval" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">状态</label>
					<div class="layui-input-block">

						@Html.DropDownListFor(s => s.State, new SelectList(Enum.GetNames(typeof(ApplicationCore.Entities.RoomState)), "请选择"))
						@*<input type="text" id="State" name="State" value="@Model.State" autocomplete="off" placeholder="" class="layui-input">*@
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">域名</label>
					<div class="layui-input-block">
						<input type="text" id="Doman" name="Doman" value="@Model.Doman" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">开始时间</label>
					<div class="layui-input-block">
						<input type="text" name="DateTimeStart" id="DateTimeStart" value="@Model.DateTimeStart.Value.ToString("yyyy-MM-dd")" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">结束时间</label>
					<div class="layui-input-block">
						<input type="text" name="DateTimeEnd" id="DateTimeEnd" value="@Model.DateTimeEnd.Value.ToString("yyyy-MM-dd")" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">

					</div>
				</div>

			</div>
			<div class="layui-tab-item">
				<div class="layui-form-item">
					<label class="layui-form-label">yyID号</label>
					<div class="layui-input-block">
						<input type="text" id="YYLiveId" name="YYLiveId" value="@Model.YYLiveId" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">斗鱼ID号</label>
					<div class="layui-input-block">
						<input type="text" id="DYLiveId" name="DYLiveId" value="@Model.DYLiveId" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">直播地址</label>
					<div class="layui-input-block">
						<input type="text" id="LiveUrl" name="LiveUrl" value="@Model.LiveUrl" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-tab-item">


				<div class="layui-form-item">
					<label class="layui-form-label">滚动公告</label>
					<div class="layui-input-block">
						<input type="text" id="Scroll2Notice" name="Scroll2Notice" value="@Model.Scroll2Notice" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">公告</label>
					<div class="layui-input-block">
						<input type="text" id="Note1" name="Note1" value="@Model.Note1" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">版权说明</label>
					<div class="layui-input-block">
						<input type="text" id="Note2" name="Note2" value="@Model.Note2" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">权限说明</label>
					<div class="layui-input-block">
						<input type="text" id="Note3" name="Note3" value="@Model.Note3" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-tab-item">
				<div class="layui-form-item">
					<label class="layui-form-label">房间logo</label>
					<div class="layui-input-block">
						<input type="text" id="Logo" name="Logo" value="@Model.Logo" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">在线人数</label>
					<div class="layui-input-block">
						<input type="text" id="OnlineUsers" name="OnlineUsers" value="@Model.OnlineUsers" autocomplete="off" placeholder="" class="layui-input">
					</div>
				</div>
			</div>

		</div>
	</div>


	<input type="hidden" id="Id" name="Id" autocomplete="off" value="@Model.Id" placeholder="" class="layui-input">


	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form> 

<script>
	layui.config({
		base: '/layui/room/' //你存放新模块的目录，注意，不是layui的模块目录
	}).use('create'); //加载入口
</script> 